<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="sqlite3.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="sqlite3.resources.html">资源类型 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="sqlite3.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="sqlite3.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>SQLite3 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="sqlite3.configuration.html#ini.sqlite3.extension-dir" class="link">sqlite3.extension_dir</a></td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>PHP 5.3.11 起可用</td>
     </tr>

     <tr>
      <td><a href="sqlite3.configuration.html#ini.sqlite3.defensive" class="link">sqlite3.defensive</a></td>
      <td>1</td>
      <td>PHP_INI_SYSTEM</td>
      <td>PHP 7.2.17 和 7.3.4 起可用，libsqlite ≥ 3.26.0。</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>
   
     <dt id="ini.sqlite3.extension-dir">
      <code class="parameter">sqlite3.extension_dir</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
       Path to the directory where the loadable extensions for SQLite reside.
      </p>
     </dd>

    
   
     <dt id="ini.sqlite3.defensive">
      <code class="parameter">sqlite3.defensive</code>
      <span class="type">bool</span>
     </dt>

     <dd>

      <p class="para">
       When the defensive flag is enabled, language features that allow ordinary
       SQL to deliberately corrupt the database file are disabled. This forbids
       writing directly to the schema, shadow tables (eg. FTS data tables), or
       the sqlite_dbpage virtual table.
       This <var class="filename">php.ini</var> setting is only effective for libsqlite ≥ 3.26.0.
      </p>
     </dd>

    
  </dl>

 </p>
</div></div></div></body></html>